<div class="posts">
	<ul>
		<? foreach ( $entity->Posts()->Values as $post ): ?>
			<li class="post">
				<p class="posted">
					<?=$post->Created()?> By
					<? if ( $post->User() ): ?>
						<a href="<?=$post->User()->Url()?>"><?=$post->User()->Dname()?></a>
					<? else: ?>
						Anonymous
					<? endif ?>
				</p>
				<h5><?=$post->Title()?></h5>
				<div class="body">
					<p>
						<?=$post->Body()?>
					</p>
				</div>
				<? if ( $entity->Type != 'Post' && $post->Posts() ) : ?>
					<div class="replies">
						<? Site::RenderView('modules/_view_posts', array('entity' => $post)) ?>
					</div>
				<? endif ?>
				<? if ( get_class($entity) != 'Post' ) : ?>
					<div class="reply">
						<p>
							<a href="<?=$post->CreatePostUrl()?>">Reply</a>
						</p>
					</div>
				<? endif ?>
			</li>
		<? endforeach ?>
	</ul>
	<? if ( $entity->PostPagination() && $entity->PostPagination()->Last ): ?>
		<div class="pagination">
			<? Site::RenderView('modules/_pagination', array('page' => $entity->PostPagination())) ?>
		</div>
	<? endif ?>
</div>